package com.cms.sync.model;

import java.util.HashMap;
import java.util.Map;

public class MapUtil {

	private Map<String,Object> map = new HashMap<String,Object>();
	
	public boolean keyExists(String key){
		return map.containsKey(key);
	}
	public Object replace(String key,Object val){
		map.remove(key);
		return map.put(key, val);
	}
	public Object add(String key,Object val){
		return map.put(key, val);
	}
	public Object add(String key,Object val,int t){
		return map.put(key, val);
	}
	public Object get(String key){
		return map.get(key);
	}
}
